<div id="content-header">
<h1><?php echo __d('system','Edit language');?></h1>
</div>
<div id="breadcrumb">
<a href="<?php echo $this->Html->url('/admin/')?>" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
<a href="#">Add</a>
</div>
<div class="container-fluid">

<div class="row-fluid">
    <div class="span12">
 <?php
    echo $this->Form->create('ManagementLanguage', array('id' => 'paginate','class'=>'form-horizontal', 'action' => 'edit', 'url' => $this->request->here(false), 'type' => 'file',
        'inputDefaults' => array('label' => false, 'format' => array('before', 'label', 'between', 'input', 'after', 'error'))));

    echo $this->Html->script('ckeditor/ckeditor');
    echo $this->element('toolbar');
    ?>                                    
        <div class="widget-box">
            <?php            
            $fieldsets['name'] = $this->Form->input('name', array(
                'label' => array('class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'type' => 'text'));                
                $fieldsets['language_code'] = $this->Form->input('language_code', array(
                'label' => array( 'text'=> 'Language code','class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',                
                'options'=>$lstLocale,
                'type' => 'select'));                                                                                                            
                $fieldsets['path'] = $this->Form->input('path', array(
                'label' => array( 'text'=> 'Image (16*16)','class' => 'control-label'),
                'between' => '<div class="controls">',
                'div' => array('class' => 'control-group'),
                'after' => '</div>',
                'type' => 'file'));                 
            ?>
<?php           
            $layout = array(
                array('name'),
                array('language_code'),               
                array('path')                
            );
            $layout = array(
                array(
                    'Basic setting',
                    $layout,
                )
            );
            echo $this->Layout->form($layout, $fieldsets);
    ?>        
        </div>
    <?php
    echo $this->Form->hidden('node_type_id');
    echo $this->Form->hidden('Paginate.task', array('id' => 'task', 'value' => ''));
    echo $this->Form->end();
    ?>                                    
    </div>    
</div>
<!--
<div class="row-fluid">
    <div class="span12">
        <div class="widget-box">
            <div class="widget-title">
                <span class="icon">
                    <i class="icon-align-justify"></i>                                    
                </span>
                <h5>SEO OPTIONS</h5>
            </div>
            <div class="widget-content nopadding">
                <form action="#" method="get" class="form-horizontal" />
                    <div class="control-group">
                        <label class="control-label">Title</label>
                        <div class="controls">
                            <input type="text" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Keywords</label>
                        <div class="controls">
                            <input type="text" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Description</label>
                        <div class="controls">
                            <textarea></textarea>
                        </div>
                    </div>
                </form>
            </div>
        </div>    
    </div>
</div>
-->
